package com.dailyblue.java.servlet.controller;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.io.PrintWriter;

@WebServlet("/four")
public class FourthController extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // out
        PrintWriter out = response.getWriter();
        // session
        HttpSession session = request.getSession();
        // application
        ServletContext application = session.getServletContext();
        // exception
        // int a = 10 / 0;
        // config
        ServletConfig config = getServletConfig();
        // page
        Object page = this;
    }
}
